package com.ncloud.crm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ncloud.crm.entity.BsNodeEqpt;
import com.ncloud.crm.mapper.BsNodeEqptMapper;
import com.ncloud.crm.service.BsNodeEqptService;

/**
 * Created by shiqiang on 2017/4/17.
 */
@Service
public class BsNodeEqptServiceImpl implements BsNodeEqptService {
	
	@Autowired
	private BsNodeEqptMapper nodeEqptMapper;

	@Override
	public int insertNodeEqpt(BsNodeEqpt eqpt) {
		return nodeEqptMapper.insertNodeEqpt(eqpt);
	}

	@Override
	public int updateNodeEqpt(BsNodeEqpt eqpt) {
		return nodeEqptMapper.updateNodeEqpt(eqpt);
	}

	@Override
	public BsNodeEqpt getNodeEqptInfoByPk(long equipId) {
		return nodeEqptMapper.getNodeEqptInfoByPk(equipId);
	}

	@Override
	public List<BsNodeEqpt> getNodeEqptsByNodeId(Long nodeId) {
		return nodeEqptMapper.getNodeEqptsByNodeId(nodeId);
	}

	@Override
	public List<BsNodeEqpt> getBsNodeEqptsByNodeId(Long nodeId) {
		return nodeEqptMapper.getBsNodeEqptsByNodeId(nodeId);
	}
}